//package com.wise.config;
//
//import com.wise.framework.dao.Dao;
//import com.wise.framework.web.JwtService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.data.redis.core.RedisTemplate;
//import org.springframework.stereotype.Component;
//
//import javax.annotation.Resource;
//import javax.servlet.Filter;
//import javax.servlet.FilterChain;
//import javax.servlet.FilterConfig;
//import javax.servlet.ServletException;
//import javax.servlet.ServletRequest;
//import javax.servlet.ServletResponse;
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import java.io.IOException;
//
///**
// * 权限判断
// */
//@Component
//public class TestFilter implements Filter {
//
//    @Autowired
//    private JwtService jwtService;
//    public static final String STR_BEARER = "Bearer ";
//    @Resource
//    private RedisTemplate<String, String> redisTemplate;
//    @Autowired
//    private Dao dao;
//    @Override
//    public void init(FilterConfig filterConfig) throws ServletException {
//
//    }
//
//    @Override
//    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
//        HttpServletRequest request = (HttpServletRequest) servletRequest;
//        HttpServletResponse response = (HttpServletResponse) servletResponse;
//        String requestURI = request.getRequestURI();
////        if (!"/actuator/health".equals(requestURI)) {
//            System.out.println("TestFilter," + requestURI);
////        }
//
//        //执行
//        filterChain.doFilter(servletRequest, servletResponse);
//    }
//
//    @Override
//    public void destroy() {
//
//    }
//}